package com.lwl.blue.entity;

import java.io.Serializable;
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.lwl.blue.commont.aop.PowerFieldInterface;
import com.lwl.blue.commont.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 部门信息表
 * @TableName department
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Department extends BaseEntity implements Serializable {
    /**
     * 部门id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 部门名
     */
    private String name;

    /**
     * 部门主管id
     */
    private Long manager;

    /**
     * 部门状态（启用1、停用0）
     */
    private Integer status;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 部门邮箱
     */
    private String email;

    /**
     * 创建时间
     */
    @ApiModelProperty(name = "createTime", value = "时间条件参数开始--创建时间")
    @TableField(exist = false)
    @JSONField(serialize = false, format = "yyyy-MM-dd HH:mm:ss")
    @PowerFieldInterface()
    private Date createTime;

    /**
     * 创建人id
     */
    @PowerFieldInterface()
    private String createUser;

    /**
     * 最后更新时间
     */
    @ApiModelProperty(name = "updateTime", value = "时间条件参数开始--最后更新时间")
    @TableField(exist = false)
    @JSONField(serialize = false, format = "yyyy-MM-dd HH:mm:ss")
    @PowerFieldInterface()
    private Date updateTime;

    /**
     * 更新人id
     */
    @PowerFieldInterface()
    private String updateUser;

    /**
     * 逻辑删除（删除1、存在0）
     */
    private Integer isDelete;

    private static final long serialVersionUID = 1L;
}